package tuio;

import java.awt.Point;

import tuio.libTUIO.src.TUIO.TuioCursor;

/**
 * @author Charles Perin
 * 29 mars 2011
 * LIMSI - INRIA Rennes
 * charles.perin@free.fr
 *
 */
public class TCurAndPoint {

	private TuioCursor tCur;
	
	private Point localPoint;
	
	public TCurAndPoint(TCurAndPoint tcp){
		settCur(new TuioCursor(tcp.gettCur()));
		setLocalPoint(new Point((int)tcp.getLocalPoint().getX(), (int)tcp.getLocalPoint().getY()));
	}
	
	public TCurAndPoint(TuioCursor tCur, Point localPoint){
		settCur(tCur);
		setLocalPoint(localPoint);
	}

	public void settCur(TuioCursor tCur) {
		this.tCur = tCur;
	}

	public TuioCursor gettCur() {
		return tCur;
	}

	public void setLocalPoint(Point localPoint) {
		this.localPoint = localPoint;
	}

	public Point getLocalPoint() {
		return localPoint;
	}
}
